#ifndef __CONFIGURABLE_VISITOR_H__
#define __CONFIGURABLE_VISITOR_H__

namespace cyclone::parser
{
    class ConfigurableVisitor
    {
    public:
        auto enableLocation(bool enable)
        {
            locations_ = enable;
        }
        auto enableParens(bool e)
        {
            preserveParens_ = e;
        }
        auto location() const
        {
            return locations_;
        }
        auto preserveParens() const
        {
            return preserveParens_;
        }

    private:
        bool locations_ = false;
        bool preserveParens_ = false;
    };

} // namespace cyclone::parser

#endif // __CONFIGURABLE_VISITOR_H__